﻿Jxstar.currentPage = function() {
	var config = {param:{},initpage:function(page, define){},eventcfg:{}};

	var cols = [
	{col:{header:'*日志内容', width:316, sortable:true, editable:true, hcss:'color:#0000ff;',
		editor:new Ext.form.TextField({
			maxLength:50, allowBlank:false
		})}, field:{name:'pur_apply_log__log_content',type:'string'}},
	{col:{header:'记录日期', width:100, sortable:true, defaultval:'fun_getToday()', editable:true, hcss:'color:#3039b4;',
		editor:new Ext.form.DateField({
			format: 'Y-m-d',
			minValue: '1900-01-01'
		}),
		renderer:function(value) {
			return value ? value.format('Y-m-d') : '';
		}}, field:{name:'pur_apply_log__log_date',type:'date'}},
	{col:{header:'记录人', width:100, sortable:true, defaultval:'fun_getUserName()', editable:true, hcss:'color:#3039b4;',
		editor:new Ext.form.TextField({
			maxLength:50
		})}, field:{name:'pur_apply_log__log_user',type:'string'}},
	{col:{header:'备注', width:259, sortable:true, editable:true, hcss:'color:#3039b4;',
		editor:new Ext.form.TextField({
			maxLength:200
		})}, field:{name:'pur_apply_log__log_memo',type:'string'}},
	{col:{header:'主键', width:100, sortable:true, hidden:true}, field:{name:'pur_apply_log__log_id',type:'string'}},
	{col:{header:'采购单ID', width:100, sortable:true, hidden:true}, field:{name:'pur_apply_log__apply_id',type:'string'}}
	];
	
	config.param = {
		cols: cols,
		sorts: null,
		hasQuery: '1',
		isedit: '1',
		isshow: '0',
		funid: 'pur_apply_log'
	};
	
	
		
	return new Jxstar.GridNode(config);
}